/* 
 * File:        %<%NAME%>%.%<%EXTENSION%>%
 * Author:      %<%USER%>%
 * Date:        %<%DATE%>%, %<%TIME%>%
 * Description: Tests the SpamEquationsApplication2 file.
 */

#include <stdlib.h>
#include <iostream>

/*
 * Simple C++ Test Suite
 */

double extremeProbabilityValue(double probability);

void testExtremeProbabilityValue() {
    double probability = .05;
    double result = extremeProbabilityValue(probability);
    std::cout << result << std::endl;
    if (result != .45) {
        std::cout << "%TEST_FAILED% time=0 testname=testExtremeProbabilityValue (CS325Project3SpamEquationsApplication2) message=error message sample" << std::endl;
    }
}

double spamFilterIndicatorValueEquation(double outliers[], int numberOfOutliers);

void testSpamFilterIndicatorValueEquation() {
    double outliers[5] = {.45, .33, .44, .21, .38};
    double result = spamFilterIndicatorValueEquation(outliers, 5);
    std::cout << result << std::endl;
    if (result == 0.0) {
        std::cout << "%TEST_FAILED% time=0 testname=testSpamFilterIndicatorValueEquation (CS325Project3SpamEquationsApplication2) message=error message sample" << std::endl;
    }
}

int main(int argc, char** argv) {
    std::cout << "%SUITE_STARTING% CS325Project3SpamEquationsApplication2" << std::endl;
    std::cout << "%SUITE_STARTED%" << std::endl;

    std::cout << "%TEST_STARTED% testExtremeProbabilityValue (CS325Project3SpamEquationsApplication2)" << std::endl;
    testExtremeProbabilityValue();
    std::cout << "%TEST_FINISHED% time=0 testExtremeProbabilityValue (CS325Project3SpamEquationsApplication2)" << std::endl;

    std::cout << "%TEST_STARTED% testSpamFilterIndicatorValueEquation (CS325Project3SpamEquationsApplication2)" << std::endl;
    testSpamFilterIndicatorValueEquation();
    std::cout << "%TEST_FINISHED% time=0 testSpamFilterIndicatorValueEquation (CS325Project3SpamEquationsApplication2)" << std::endl;

    std::cout << "%SUITE_FINISHED% time=0" << std::endl;

    return (EXIT_SUCCESS);
}

